package com.wzd.shoppingService.model.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 活动表
 *
 * @author WeiZiDong
 */
@Table(name = "`activitys`")
@Data
@ApiModel("活动表")
public class Activitys implements Serializable {
    @Id
    @Column(name = "`id`")
    @ApiModelProperty(value = "记录id", example = "1")
    private Long id;
    @Column(name = "`create_by`")
    @ApiModelProperty(value = "创建人", example = "String")
    private String createBy;
    @Column(name = "`create_time`")
    @ApiModelProperty(value = "创建时间", example = "2019-05-05 17:55:31")
    private Date createTime;
    @Column(name = "`update_by`")
    @ApiModelProperty(value = "更新人", example = "String")
    private String updateBy;
    @Column(name = "`update_time`")
    @ApiModelProperty(value = "更新时间", example = "1556946359031")
    private Date updateTime;
    @Column(name = "`delete_flag`")
    @ApiModelProperty(value = "1:删除，0：未删除", example = "1")
    private Integer deleteFlag;
    @Column(name = "`status_flag`")
    @ApiModelProperty(value = "1:启用，0：禁用", example = "1")
    private Integer statusFlag;
    @Column(name = "`cover_map`")
    @ApiModelProperty(value = "活动封面图", example = "String")
    private String coverMap;
    @Column(name = "`activity_name`")
    @ApiModelProperty(value = "活动名称", example = "String")
    private String activityName;
    @Column(name = "`video`")
    @ApiModelProperty(value = "活动视频地址", example = "String")
    private String video;
    @Column(name = "`describes`")
    @ApiModelProperty(value = "活动详情", example = "String")
    private String describes;
    @Column(name = "`status`")
    @ApiModelProperty(value = "活动状态：0未开始，1报名中，2已结束", example = "1")
    private Integer status;
    @Column(name = "`initiator_name`")
    @ApiModelProperty(value = "活动主办方名称", example = "String")
    private String initiatorName;
    @Column(name = "`initiator_pic`")
    @ApiModelProperty(value = "活动主办方logo", example = "String")
    private String initiatorPic;
    @Column(name = "`enroll_start_time`")
    @ApiModelProperty(value = "活动报名开始时间", example = "2019-05-05 17:55:31")
    private Date enrollStartTime;
    @Column(name = "`enroll_end_time`")
    @ApiModelProperty(value = "活动报名结束时间", example = "2019-05-05 17:55:31")
    private Date enrollEndTime;
    @Column(name = "`enroll_fee`")
    @ApiModelProperty(value = "报名费用", example = "1.0")
    private BigDecimal enrollFee;
    @Column(name = "`activity_province`")
    @ApiModelProperty(value = "活动省份", example = "String")
    private String activityProvince;
    @Column(name = "`activity_city`")
    @ApiModelProperty(value = "活动城市", example = "String")
    private String activityCity;
    @Column(name = "`activity_type`")
    @ApiModelProperty(value = "活动类型：1线上，2线下", example = "String")
    private String activityType;
    @Column(name = "`initiator_type`")
    @ApiModelProperty(value = "活动主办方类型：1机构，2平台", example = "String")
    private String initiatorType;
    @Column(name = "`publisher_id`")
    @ApiModelProperty(value = "发布方ID", example = "1")
    private Long publisherId;
    @Column(name = "`publisher_name`")
    @ApiModelProperty(value = "发布方名称", example = "String")
    private String publisherName;
    @Column(name = "`publisher_logo`")
    @ApiModelProperty(value = "发布方logo", example = "String")
    private String publisherLogo;
    @Column(name = "`weight_value`")
    @ApiModelProperty(value = "权重值", example = "1")
    private Integer weightValue;
    @Column(name = "`test_paper_id`")
    @ApiModelProperty(value = "试卷ID", example = "1")
    private Long testPaperId;
    @Column(name = "`remark`")
    @ApiModelProperty(value = "备注", example = "String")
    private String remark;

    private static final long serialVersionUID = 1L;
}
